Xbasic

QRCode::Creator::GeneratePngFile Method

Syntax

PUBLIC STATIC GeneratePngFile AS L (text AS C, filename AS C, correctionLevel AS C)

Arguments

text AS C

QRCode input

filename AS C

The generated .PNG filename

correctionLevel AS C

Correction level can be L,M,Q or H (L=7%, M=15%, Q=25%, H=30%). See QRCode Namespace for more information.

Description

GeneratePngFile creates a .PNG file containing a QRCode image.

Example

? ::QRCode::Creator::GeneratePngFile("Hello world","c:\helloWorld.png","M")
= .T.

See Also